﻿namespace CheckIn.AdminServer.Controllers.PlanSrc
{
    using CheckIn.AdminServer.PlanDBModels;
    using DawnAdminServer.Attributes;
    using DawnAdminServer.Controllers;
    using DawnAdminServer.Dtos;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;

    [MatchPath("plan/UserCheckInItemView")]
    public class UserPlanCheckInItemController : EfReadonlyControllerBase<PlanDBContext, CheckInItem, UserCheckInItemSearchModel>
    {
        protected override IQueryable<CheckInItem> Query => this.CurrentDbContext.CheckInItem.Where(m=>m.OwnerId > 0);
        //protected override string OrderExpression => "JoinCount desc,id desc";
    }

    public class UserCheckInItemSearchModel : SearchRequestModel
    {
        public string? Title { get; set; }
        public string? SubTitle { get; set; }    
    }

}
